package com.demo.afternoon;

/**
 * @ClassName 多态
 * @Description TODO
 * @Author tianqinglong
 * @Date 15:17 2022/7/5
 * @Version 1.0
 **/
public class 多态 {
    public static void main(String[] args) {
        Plane plane = new Plane();
        plane.call();
        plane.fly();
    }
}
interface fly{
    void fly();
}
interface callable{
    void call();
}
class Plane implements fly,callable{

    @Override
    public void fly() {
        System.out.println("飞");
    }

    @Override
    public void call() {
        System.out.println("叫");
    }
}